rm online 
echo "删除online二进制文件"
cat /dev/null > .out
echo "删除nohup日志文件"
go build -o online main.go
echo "构建online二进制文件"
nohup ./online -pidx 1 > online1.out 2>&1  &
echo "启动online_1服"
sleep 1
tail online1.out
nohup ./online -pidx 2 > online2.out 2>&1 &
echo "启动online_2服"
sleep 1
tail online2.out
